package com.zhentao.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result {

    private Integer code;
    private Object data;
    private String mis;


    public static Result OK(Object data,String mis){
        return new Result(200,data,mis);
    }

    public static Result Err(Object data,String mis){
        return new Result(400,data,mis);
    }


}
